/**
 * 
 */
package pl.controller.add;

import java.util.Collection;

import pl.common.SessionDataBean;
import pl.model.domain.Author;
import pl.model.domain.Book;
import pl.model.domain.Comment;
import pl.model.domain.Publisher;

public class AddBookBackingObject {
	protected SessionDataBean sessionData;
	public Book book;
	public String captcha;
	public String getCaptchaReal(){
		return captcha;
	}
	public String getCaptcha() {
		return "";
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean equals(Object obj) {
		return book.equals(obj);
	}

	public Author getAuthor() {
		return book.getAuthor();
	}

	public Collection<Author> getCoauthors() {
		return book.getCoauthors();
	}

	public Collection<Comment> getComments() {
		return book.getComments();
	}

	public String getDescription() {
		return book.getDescription();
	}

	public int getId() {
		return book.getId();
	}

	public Publisher getPublisher() {
		return book.getPublisher();
	}

	public Integer getRank() {
		return book.getRank();
	}

	public String getTags() {
		return book.getTags();
	}

	public String getTitle() {
		return book.getTitle();
	}

	public Integer getVersion() {
		return book.getVersion();
	}

	public int hashCode() {
		return book.hashCode();
	}

	public void setAuthor(Author author) {
		book.setAuthor(author);
	}

	public void setCoauthors(Collection<Author> coauthors) {
		book.setCoauthors(coauthors);
	}

	public void setComments(Collection<Comment> comments) {
		book.setComments(comments);
	}

	public void setDescription(String description) {
		book.setDescription(description);
	}

	public void setId(int id) {
		book.setId(id);
	}

	public void setPublisher(Publisher publisher) {
		book.setPublisher(publisher);
	}

	public void setRank(Integer rank) {
		book.setRank(rank);
	}

	public void setTags(String tags) {
		book.setTags(tags);
	}

	public void setTitle(String title) {
		book.setTitle(title);
	}

	public void setVersion(Integer version) {
		book.setVersion(version);
	}

	public String toString() {
		return book.toString();
	}

	public AddBookBackingObject(){
		this.book = new Book();
	}
	public SessionDataBean getSessionData() {
		return sessionData;
	}
	public void setSessionData(SessionDataBean sessionData) {
		this.sessionData = sessionData;
	}
	public Book getBook() {
		return book;
	}
	public void setBook(Book book) {
		this.book = book;
	}
}